<?php
session_start();
require_once('session.php');
require_once '../sql/connection.php';
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" href="kindeditor/themes/default/default.css"/>
    <link href="css/table.css" rel="stylesheet" type="text/css"/>
    <script charset="utf-8" src="kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
    <script>
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('textarea[name="content"]', {
                allowFileManager: true
            });
            K('#image3').click(function () {
                editor.loadPlugin('image', function () {
                    editor.plugin.imageDialog({
                        showRemote: false,
                        imageUrl: K('#url3').val(),
                        clickFn: function (url, title, width, height, border, align) {
                            K('#url3').val(url);
                            editor.hideDialog();
                        }
                    });
                });
            });
        });
    </script>
</head>

<body>
<form id="form1" name="form1" method="post" action="produce_add_pass.php">
    <table width="100%" border="1" cellspacing="0" cellpadding="0">
        <tr>
            <td class="tt" colspan="2">添加产品</td>
        </tr>
        <tr>
            <td width="12%" height="35"><span style="color:#F30">*</span>商品名：</td>
            <td width="88%"><input name="name" type="text" id="name" size="50"></td>
        </tr>
        <tr>
            <td height="31">库存：</td>
            <td><input name="stock" type="number" id="stock" value=""></td>
        </tr>
        <tr>
            <td height="31">价格：</td>
            <td><input name="price" type="number" id="price" value=""></td>
        </tr>
        <tr>
            <td height="31"><span style="color:#ff3300">*</span>宣传图（链接）</td>
            <td><input name="image" type="text" id="image" value=""></td>
        </tr>

        <tr>
            <td height="60">系列：</td>
            <td><label for="keywords"></label>
                <input type="number" id="series_id" name="series_id">
        </tr>
        <tr>
            <td height="60">描述：</td>
            <td><label for="description"></label>
                <input type="text" name="introduction" id="introduction" cols="60" rows="3"></td>
        </tr>

        <tr>
            <td height="43" colspan="2"><input type="submit" name="Submit" value="提交"/></td>
        </tr>
    </table>
</form>
</body>
</html>
